//
//  SecondHomeTableCell.m
//  225视听百科
//
//  Created by 张潇 on 14/12/29.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SecondHomeTableCell.h"

@implementation SecondHomeTableCell

- (void)dealloc
{
    [_nameLabel release];
    [_countsLabel release];
    [_smallImg release];
    [super dealloc];
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        self.frame = [[UIScreen mainScreen] bounds];
        
        UIImageView *backImg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"grayback.png"]];
        backImg.frame = CGRectMake(0, 0, self.frame.size.width, 70);
        [self.contentView addSubview:backImg];
        
        UIImageView *zhuanji = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"zhuanji.png"]];
        zhuanji.frame = CGRectMake(75, 10, 20, 20);
        [self.contentView addSubview:zhuanji];
        
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 10, 200, 20)];
        _nameLabel.textColor = [UIColor whiteColor];
        [backImg addSubview:_nameLabel];
        
        
        self.countsLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 40, 200, 20)];
        [backImg addSubview:_countsLabel];
        
        
        self.smallImg = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 60, 60)];
        [backImg addSubview:_smallImg];
        
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
